/**
 * 路由表
 */

export const AppRoutes = [
    {
      path: '/',
      name: '首页',
      component: () => import('../views/home/index2.vue'), // 全自动发布
      // component: () => import('../views/home/index.vue'), // 半自动发布
      meta: {
        title: '首页',
        requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
    },
    {
        path: '/login',
        name: '登录',
        component: () => import('../views/login.vue'),
        meta: {
          title: '',
          requireAuth: true,
        },
    },
    {
      path: '/articleList',
      name: '列表',
      component: () => import('../views/articleList/index.vue'),
      meta: {
        title: '列表',
        requireAuth: true,
      },
    },
    {
      path: '/articleDetails',
      name: '文章详情',
      component: () => import('../views/articleList/articleDetails.vue'),
      meta: {
        title: '文章详情',
        requireAuth: true,
      },
    }
  ]